<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>会员注册 - {$config_sitename}</title>
    <meta content="" name="keywords">
    <meta content="" name="description">
    <link rel="stylesheet" href="__CSS__/global.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__COMMJS__/wind.js"></script>
    <script src="__JS__/jquery-1.7.2.min.js"></script>
</head>

<body>
<div class="b-page">

    <Admintemplate file="Home/Public/header"/>

    <div class="b-login">
        <div class="b-body l-center">
            <div class="b-login__top">
                <a href="__WEBURL__/user/login" class="b-login__tab">用户登录</a>
                <a href="javascript:;" class="b-login__tab b-login__tab2 act">注册</a>
                <div class="b-login__title"><img class="pic_mid" src="__IMAGES__/111.png"></div>
            </div>
            <div class="b-login__body" style="height: 550px;">
                <form onsubmit="return false">
                <div class="b-login__left">
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">账号：</div>
                        <div class="b-login__col2"><input type="text" name="uname" id="uname" placeholder="请使用邮箱注册" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">昵称：</div>
                        <div class="b-login__col2"><input type="text" name="nickname" id="nickname" placeholder="请输入昵称" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">密码：</div>
                        <div class="b-login__col2"><input type="password" name="password" id="password" placeholder="请输入密码" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">确认密码：</div>
                        <div class="b-login__col2"><input type="password" name="password2" id="password2" placeholder="请输入确认密码" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">验证码：</div>
                        <div class="b-login__col5">
                            <input type="text" id="vCode" name="vCode" />
                            <a class="b-login__yanzhengma"><img id="authCode" align="absmiddle" title="看不清？点击更换" src="{:U("Api/Checkcode/index","&type=userregister&refresh=1&code_len=4&font_size=14&width=80&height=40&font_color=&background=",'')}"></a>
                            <a href="javascript:;" id="changeAuthCode" class="b-login__kanbuqing">看不清换一个</a>
                        </div>
                    </div>
                    <div class="errmsg"></div>
                    <div class="clear"></div>
                    <div class="ofh l-mgb20" style="margin-top: 20px">
                        <div class="b-login__col4">
                            <button class="login" id="regSubmit">同意协议并注册</button>
                        </div>
                    </div>

                    <div class="ofh l-mgb20">
                        <div class="b-login__col4">
                            <div class="b-login__hezuoTitle">使用合作账号登录</div>
                        </div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col4">
                            <div class="b-login__hezuoList">
                                <a href="{:U('/user/login/login?type=qq')}" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_qq.png"></a>
                                <a href="{:U('/user/login/login?type=sina')}" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_weibo.png"></a>
                            </div>
                        </div>
                    </div>
                </div>
                    </form>
                <div class="b-login__right">
                    <a href="" class="b-login__advert"><img src="__IMAGES__/login_advert.jpg"></a>
                </div>
            </div>
        </div>
    </div>

    <Admintemplate file="Home/Public/footer"/>

</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/user.js"></script>
<script>
    libs.vcodeRefresh();
    user.register();
    $(document).ready(function(){
        $('.b-dongtaiItem').each(function(i,val){
            if(i%3==0) $(this).addClass('b-dongtaiItem_first');
        });
        $('.b-input__placeholder').on('click',function(){
            $(this).hide().prev().focus();
        });
        $('.b-login__col2>input').on('blur',function(){
            if($(this).val()=='') $(this).next().show();
        });
    });
</script>
</body>
</html>